<template>
  <div>
    <Comment :commentData="item" v-for="(item,index) in commentList" :key="index" />
  </div>
</template>

<script>
import Comment from "@/components/comment/index";
export default {
  components: {
    Comment
  },
  mounted() {
    this.$axios({
      url: "/post_comment/1",
      method: "GET"
    }).then(res => {
      console.log(res.data);
      this.commentList = res.data.data;
    });
  },
  data() {
    return {
      commentList: []
    };
  }
};
</script>

<style>
</style>